package com.demo.eventbus.controller;

import com.demo.eventbus.service.UserService;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 描述：
 * 作者 张超
 * 时间 2018/9/29
 * 项目 springboot-demo v1.0
 * 版本 v1.0
 */
@RestController
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class TestController {
    private final UserService userService;

    @GetMapping(value = "test")
    public Object testSend() {
        System.err.println("进入调用");
        userService.send();
        return null;
    }
}
